<?php
session_start();
?>

  <?php

if(isset($_SESSION['user_logged'])){
	//do nothing!
}else{
	echo "<h2>You are not currently logged in.</h2>";
	echo "<h2We are redirecting you.</h2>";
	header("Refresh: 3;URL=login.html");
	die();
	}
	
?>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Rainfall Visualisations</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/style.css" rel="stylesheet">
    
    <!-- Jquery -->
    

  </head>
  


  <body>
    <nav class="navbar">
      <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
         
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="index.html"><i class="glyphicon glyphicon-home"></i> Home</a></li>
            <li><a href="Personal_Details_test.php"><i class="glyphicon glyphicon-cloud"></i> Rainfall Readings</a></li>
            <li><a href="annual_leave.html"><i class="glyphicon glyphicon-signal"></i> Rainfall Visualisations </a></li>
            <li><a href="holiday_cal.php"><i class="glyphicon glyphicon glyphicon-log-out"></i> Logout </a></li>
          </ul>
        </div><!-- /.navbar-collapse -->
      </div><!-- /.container-fluid -->
    </nav>


    <div class="jumbotron">
      <div class="container">
        <div class="rightside">
          <h1>Rainfall Visualisations</h1>
          <ul>
           
 <li>&nbsp;</li>
          </ul>
          <br><br>

        </div>
      </div>
    </div>
	
	    <section class="contact">
      <div class="container">
        <div class="col-md-9">
          <h3>Update data to Latest statistics </h3>
          <p>You May be looking at old data to make sure your looking at our most currunt rain fall statistics plese click the button to the right. </p>
        </div>
        <div class="col-md-3"><a href="#" class="btn btn-primary">Update rainfall data</a></div>
      </div>
    </section>
<section class="service">
  <div class="container">
    <center style="color: #000000;">
      <h2>Rainfall Visualisations</h2>
              <p style="text-align: left">On this page you will be able to view the latest rain fall data for each sensor in three different types of graphs. Please choose from thr options below:			  </p>
   <br> </br>


<img src="rainfall_graphs.php">
</body>
</html>
	</center><br><br>
</div>
<div>
<center>


</center>
</section>
    <footer>
      <div class="container">
        <div class="col-md-12">
         <P>For all other enquires please mail, call or email the Weather Service Portal team on the information below.</P>
         <p> Weather Service, Civic Offices, Angel Street, Bridgend, CF31 4WB
           Tel: 01656 643643
           Text Relay: 18001 01656 643643
           Fax: 01656 668126
           Email: rainfall@weatherservice.co.uk
           
           Opening times
           Monday - Friday 8.00am - 5.30pm </p>
        </div>

      </div>

      <div class="copy"> Copyright &copy; 2020 Weather Service Portal</div>
    </footer>





    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>
